package com.mlm.mlmapp.adapter.view;

import android.app.ProgressDialog;
import android.content.Context;
import android.os.Bundle;

import com.androidquery.util.Progress;
import com.mlm.mlmapp.R;
import com.mlm.mlmapp.utils.CommonUtils;

/**
 * Created by stone on 16/3/8.
 */
public class AQProgressDialog extends ProgressDialog {
    Context mContext;
    public AQProgressDialog(Context context) {
        super(context);
        this.mContext=context;
        this.setCancelable(false);
//        this.setIndeterminate(true);
//        this.setCancelable(true);
//        this.setInverseBackgroundForced(false);
//        this.setCanceledOnTouchOutside(true);
//        this.setTitle("加载中");
    }
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.aq_progress);
        ProgressWheel pwOne = (ProgressWheel) findViewById(R.id.progress);
//        styleRandom(pwOne, mContext);
        pwOne.startSpinning();
//  setContentView(android.R.layout.alert_dialog_progress);

    }
//    private static void styleRandom(ProgressWheel wheel, Context ctx) {
//        wheel.setRimShader(null);
//        wheel.setRimColor(0xFFFFFFFF);
//        wheel.setCircleColor(0x00000000);
//        wheel.setBarColor(0xFF000000);
//        wheel.setContourColor(0xFFFFFFFF);
//        wheel.setBarWidth(CommonUtils.dip2px(ctx, 1));
//        wheel.setBarLength(CommonUtils.dip2px(ctx, 100));
//        wheel.setSpinSpeed(4f);
//        wheel.setDelayMillis(3);
//    }
}
